import { ApiProperty } from '@nestjs/swagger';

export class WxLoginResponseDto {
  @ApiProperty({ description: '访问令牌' })
  accessToken: string;

  @ApiProperty({ description: '令牌类型' })
  tokenType: string;

  @ApiProperty({ description: '过期时间' })
  expiresIn: number;

  @ApiProperty({ description: '用户信息' })
  userInfo: {
    id: number;
    username: string;
    nickname: string;
    avatar: string;
    openid: string;
    unionid: string;
  };
}
